package homework.demo1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("homework.demo1");
        Person bean = context.getBean(Person.class);
        User bean1 = context.getBean(User.class);
        bean.sayHi();
        bean1.sayHello();
    }
}
